<div class="admin-content">
    <div class="am-cf am-padding">
        <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">优惠活动</strong> :
            <small>添加活动</small>
        </div>
    </div>
    <form class="am-form" name="userForm" ng-submit="add(activitycomplate)" novalidate>
        <!--<div class="am-g am-margin-top">
            <div class="am-u-sm-4 am-u-md-2 am-text-right">
                模板id
            </div>
            <div class="am-u-sm-8 am-u-md-4">
                <input placeholder='系统自动生成' type="text" class="am-input-sm" ng-model="user.name" required="">
            </div>
            <div class="am-hide-sm-only am-u-md-6"></div>
        </div>-->
        <div class="am-g am-margin-top">
            <div class="am-u-sm-4 am-u-md-2 am-text-right">
               活动标题
            </div>
            <div class="am-u-sm-8 am-u-md-4">
                <input placeholder="活动标题不超过20个汉字"  type="text" class="am-input-sm" ng-model="activitycomplate.title" name ="activity.title" required="">
            </div>
            <div class="am-hide-sm-only am-u-md-6"></div>
        </div>
        <div class="am-g am-margin-top">
            <div class="am-u-sm-4 am-u-md-2 am-text-right">
               活动副标题
            </div>
            <div class="am-u-sm-8 am-u-md-4">
                <input placeholder="活动副标题不超过40个字符 可自由添加" type="text"  class="am-input-sm" ng-model="activitycomplate.subhead">
            </div>
            <div class="am-hide-sm-only am-u-md-6"></div>
        </div>
        <div class="am-g am-margin-top">
            <div class="am-u-sm-4 am-u-md-2 am-text-right">
                活动开始时间
            </div>
            <div class="am-u-sm-8 am-u-md-4">
                <input placeholder="请填写开始时间"  id="addstarttime" type="text" id="1" class="am-input-sm" ng-model="activitycomplate.starttime" required="">
            </div>
            <div class="am-hide-sm-only am-u-md-6"></div>
        </div>
        <div class="am-g am-margin-top">
            <div class="am-u-sm-4 am-u-md-2 am-text-right">
                活动结束时间
            </div>
            <div class="am-u-sm-8 am-u-md-4">
                <input placeholder="请填写结束时间"  id="addendtime" type="text"  class="am-input-sm" ng-model="activitycomplate.ternimation" required="">
            </div>
            <div class="am-hide-sm-only am-u-md-6"></div>
        </div>

        <div class="am-g am-margin-top">
            <div class="am-u-sm-4 am-u-md-2 am-text-right">
                活动满减
            </div>
            <div class="am-u-sm-8 am-u-md-4">
                <span style="color: #009cda">金额满</span><input type="text" class="am-input-sm" ng-model="activitycomplate.fullcut" placeholder="金额不能小于0" required="">
            </div>
            <div class="am-hide-sm-only am-u-md-6"></div>
        </div>

        <div class="am-g am-margin-top">
            <div class="am-u-sm-4 am-u-md-2 am-text-right">
                满减金额/打折
            </div>
            <div class="am-u-sm-8 am-u-md-2">
                <select  type="text"  class="  am-input-sm" ng-change="selectfullstact(activitycomplate.fullstact)" ng-model="activitycomplate.fullstact">
                    <option value=''  ng-show="activityselect" >请选择</option>
                    <option value='1'>活动打折</option>
                    <option value='2'>活动金额</option>
                    <option value='3'>无</option>
                </select>
            </div>
            <div style="margin-left: -3%; width: 19.5%" class="am-u-sm-8 am-u-md-2">
                <input placeholder="{{activityplaceholder}}"   type="text"  class="am-input-sm"  ng-hide="activityvisible" ng-model=activitycomplate.price>
            </div>
            <div class="am-hide-sm-only am-u-md-6"></div>
        </div>

        <div class="am-g am-margin-top">
            <div class="am-u-sm-4 am-u-md-2 am-text-right">
               赠送物品
            </div>
            <div class="am-u-sm-8 am-u-md-4">
               <input type="text" class="am-input-sm" ng-model="activitycomplate.goods" placeholder="无赠送物品 请不要写入数据">
            </div>
            <div class="am-hide-sm-only am-u-md-6"></div>
        </div>

        <div class="am-g am-margin-top">
            <div class="am-u-sm-4 am-u-md-2 am-text-right">
                是否可叠加活动
            </div>
            <div class="am-u-sm-8 am-u-md-4">
                <select  type="text" class="am-input-sm" ng-model="activitycomplate.condition" placeholder="默认填0为不可叠加" required="">
                    <option value="false" selected="selected">不可叠加优惠</option>
                    <option value="true">可叠加优惠</option>
                </select>
            </div>
            <div class="am-hide-sm-only am-u-md-6"></div>
        </div>

        <div class="am-g am-margin-top">
            <div class="am-u-sm-4 am-u-md-2 am-text-right">
                使用城市区号
            </div>
            <div class="am-u-sm-8 am-u-md-4">
                <input placeholder="例：591" type="text"  class="am-input-sm" ng-model="activitycomplate.citycode" required="">
            </div>
            <div class="am-hide-sm-only am-u-md-6"></div>
        </div>

        <div class="am-g am-margin-top">
            <div class="am-u-sm-4 am-u-md-2 am-text-right">
                活动次数
            </div>
            <div class="am-u-sm-8 am-u-md-4">
                <input placeholder="无限次数 请输入0" type="text"  class="am-input-sm" ng-model="activitycomplate.frequency" required="">
            </div>
            <div class="am-hide-sm-only am-u-md-6"></div>
        </div>

        </br>
        <div class="am-form-group">
            <div class="am-u-sm-10 am-u-sm-offset-2">
                <button type="submit" style="width: 100px" ng-disabled="userForm.$invalid" class="am-btn am-btn-primary">添加
                </button>
            </div>
        </div>
    </form>
    </br>


</div>